package com.soul.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 好友时间线表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "movement_timeline")
public class MovementTimeLine implements java.io.Serializable {
    /**
     *  MongoDB自增长id
     */
    private ObjectId id;
    /**
     *  动态id
     * */
    private ObjectId movementId;
    /**
     *  发布动态用户id
     */
    private Long userId;
    /**
     *  可见好友id
     */
    private Long friendId;
    /**
     *  发布的时间
     */
    private Long created;
}